package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 实验题目业务对象 pt_question
 *
 * @author ruoyi
 * @date 2022-03-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("实验题目业务对象")
public class PtSysQuestionBo extends BaseEntity {

    /**
     * 
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 题目对应实验id
     */
    @ApiModelProperty(value = "题目对应实验id", required = true)
    @NotNull(message = "题目对应实验id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long expId;

    /**
     * 题目内容
     */
    @ApiModelProperty(value = "题目内容", required = true)
    @NotBlank(message = "题目内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 题目类型
     */
    @ApiModelProperty(value = "题目类型", required = true)
    @NotBlank(message = "题目类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 题目选项
     */
    @ApiModelProperty(value = "题目选项", required = true)
    @NotBlank(message = "题目选项不能为空", groups = { AddGroup.class, EditGroup.class })
    private String optionA;

    /**
     * 
     */
    @ApiModelProperty(value = "", required = true)
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String optionB;

    /**
     * 
     */
    @ApiModelProperty(value = "", required = true)
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String optionC;

    /**
     * 
     */
    @ApiModelProperty(value = "", required = true)
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String optionD;

    /**
     * 参考答案
     */
    @ApiModelProperty(value = "参考答案", required = true)
    @NotBlank(message = "参考答案不能为空", groups = { AddGroup.class, EditGroup.class })
    private String answer;

    /**
     * 答案解析
     */
    @ApiModelProperty(value = "答案解析", required = true)
    @NotBlank(message = "答案解析不能为空", groups = { AddGroup.class, EditGroup.class })
    private String analysis;

    /**
     * 0正常 1停用
     */
    @ApiModelProperty(value = "0正常 1停用", required = true)
    @NotBlank(message = "0正常 1停用不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 本题分数
     */
    @ApiModelProperty(value = "本题分数", required = true)
    @NotNull(message = "本题分数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long score;


}
